//
//  JXTempViewController.swift
//  sinaWeibo
//
//  Created by jixiao on 15/12/28.
//  Copyright © 2015年 heimacast. All rights reserved.
//

import UIKit

class JXTempViewController: UIViewController {
    
    
    override func viewDidLoad() {
        
        view.backgroundColor=UIColor.whiteColor()
        
        //添加方法
        navigationItem.rightBarButtonItem=UIBarButtonItem(title: "push", target: self, action: "push")
        
        navigationItem.title="第\(navigationController?.childViewControllers.count ?? 0)个控制器"
        
        
    }
    
    @objc private func push(){
        
        navigationController?.pushViewController(JXTempViewController(), animated: true)
        
    }

}
